// 1. 导入模块
import { reqGetReportInfoData } from '@/api/mock'
import { defineStore } from 'pinia'
import type {ReportDataModel} from '@/api/mock/model/data'
// 2. 定义模块内容并导出
// export const useReportDataStore = defineStore({
//   id: 'reportData',
//   state: () => {
//     return {

//     }
//   }
// })

export const useReportDataStore = defineStore('reportData', {
  state() {
    return {
      reportInfo: {} as ReportDataModel
    }
  },
  actions: {
    async getReportInfoData() {
      const result = await reqGetReportInfoData()
      // console.log('mockaa',result)
      this.reportInfo = result
    }
  }
})